package com.ruoyi.project.wodemand.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wodemand.mapper.TLogicCodeMapper;
import com.ruoyi.project.wodemand.domain.TLogicCode;
import com.ruoyi.project.wodemand.service.ITLogicCodeService;

/**
 * 逻辑运算码Service业务层处理
 * 
 * @author lt
 * @date 2020-04-21
 */
@Service
public class TLogicCodeServiceImpl implements ITLogicCodeService 
{
    @Autowired
    private TLogicCodeMapper tLogicCodeMapper;

    /**
     * 查询逻辑运算码
     * 
     * @param logicCode 逻辑运算码ID
     * @return 逻辑运算码
     */
    @Override
    public TLogicCode selectTLogicCodeById(String logicCode)
    {
        return tLogicCodeMapper.selectTLogicCodeById(logicCode);
    }

    /**
     * 查询逻辑运算码列表
     * 
     * @param tLogicCode 逻辑运算码
     * @return 逻辑运算码
     */
    @Override
    public List<TLogicCode> selectTLogicCodeList(TLogicCode tLogicCode)
    {
        return tLogicCodeMapper.selectTLogicCodeList(tLogicCode);
    }

    /**
     * 新增逻辑运算码
     * 
     * @param tLogicCode 逻辑运算码
     * @return 结果
     */
    @Override
    public int insertTLogicCode(TLogicCode tLogicCode)
    {
        return tLogicCodeMapper.insertTLogicCode(tLogicCode);
    }

    /**
     * 修改逻辑运算码
     * 
     * @param tLogicCode 逻辑运算码
     * @return 结果
     */
    @Override
    public int updateTLogicCode(TLogicCode tLogicCode)
    {
        return tLogicCodeMapper.updateTLogicCode(tLogicCode);
    }

    /**
     * 批量删除逻辑运算码
     * 
     * @param logicCodes 需要删除的逻辑运算码ID
     * @return 结果
     */
    @Override
    public int deleteTLogicCodeByIds(String[] logicCodes)
    {
        return tLogicCodeMapper.deleteTLogicCodeByIds(logicCodes);
    }

    /**
     * 删除逻辑运算码信息
     * 
     * @param logicCode 逻辑运算码ID
     * @return 结果
     */
    @Override
    public int deleteTLogicCodeById(String logicCode)
    {
        return tLogicCodeMapper.deleteTLogicCodeById(logicCode);
    }
}
